08. Async Fetch with Web APIs Demo

Async Fetch with Web APIs Demo Header

Async Fetch with Web APIs Demo

ND#0001 C3 L4 A05 Async Fetch W- APIs Example

Async Fetch w/ Web APIs Example Summary

As you continue to work with Promises and Async JavaScript it will start to feel more natural to do so. In the meantime, you can keep checking back against the keywords and making sure you are using async await try and catch to lead you to async dreamland.

Async Fetch w/ Web APIs Quiz

Which of the steps below are associated with working with Web APIs asynchronously?

SOLUTION:
  • Registering for developer credentials on the Web API’s website.
  • Creating variables to hold the base url and api key for the Web API.
  • Building a dynamic URL to make a query to the Web API.
  • Using Fetch in an `async` function to make a GET request to the Web API.

Async Fetch w/ Web APIs Quiz 2

QUESTION:

Create a dynamic URL for a web api with the base url www.api.com/data? where the variable holding the user input you are interested in is named holder, and your API key is the number 68.

SOLUTION:

NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer

Async Fetch w/ Web APIs Summary

The JavaScript Fetch API provides a more elegant interface and syntax for working with HTTP requests. This makes it a perfect fit for working with Web API data. Up next, we will learn how to chain Fetch calls together to dynamically update the UI of an app.

Async Fetch w/ Web APIs Further Research